package com.yunlong.softpark.form;

import lombok.Data;
import org.hibernate.validator.constraints.URL;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author: Cui
 * @Date: 2020/7/27
 * @Description:
 */
@Data
public class PublishedForm {

    @NotBlank(message = "软件名不能为空")
    @Size(max = 25,message = "请输入25个字以内的软件名")
    private String softName;

    @NotBlank(message = "下载地址不能为空")
    @URL(host = "10.150.200.105",message = "软件来源错误")
    private String softAddr;

    @NotBlank(message = "界面展示不能为空")
    @URL(host = "10.150.200.105",message = "界面展示来源错误")
    private String showPic;

    @NotBlank(message = "软件logo不能为空")
    @URL(host = "10.150.200.105",message = "软件logo来源错误")
    private String softLogo;

    @NotBlank(message = "软件版本不能为空")
    @Size(max = 20,message = "请输入20个字符以内的版本")
    private String edition;

    @NotBlank(message = "父分类不能为空")
    private String parentId;

    @NotBlank(message = "软件语言不能为空")
    @Size(max = 10,message = "请输入10个字符以内的支持平台")
    private String language;

    @NotBlank(message = "支持平台不能为空")
    @Size(max = 10,message = "请输入10个字符以内的支持平台")
    private String platform;

    @NotBlank(message = "软件大小不能为空")
    private String softSize;

    private String installProleft;

    private String installProright;

    @NotBlank(message = "简要介绍不能为空")
    @Size(max = 100,message = "请输入100个字以内的简要介绍")
    private String briefIntro;

}
